/**
 * Created by aa on 2016/8/15.
 */

/*兼容ie8开始*/
/*require('es5-shim');
require('es5-shim/es5-sham');
此部分由于单独打包react时webpack生成的代码优先执行，只能单独在页面中引入
*/

require('console-polyfill');
/*兼容ie8结束*/
var React=require('react');
var ReactDom=require('react-dom');
var Redux=require('redux');
var reactRedux=require('react-redux');
var thunk=require('redux-thunk');
var createStore=Redux.createStore;
var applyMiddleware=Redux.applyMiddleware;
var reducers=require('./reducers');
var HkfsHome=require( './containers/pc/HkfsHome.jsx');

//样式文件需要在入口处引用，否则webpack无法预编译
require('stylesheets/ReSlider.less');
/*var a=require('javascripte/test2.js');*/
require('stylesheets/ReDialog.less');
require('stylesheets/PhotoChange.less');
require('stylesheets/ReProcessBar.less');
require('stylesheets/ReButton.less');
require('stylesheets/ReDropDownList.less');
require('stylesheets/HkfsproductItem.less');
require('stylesheets/HkfsHomeProductTable/HkfsHomeProductTable.less');
require('stylesheets/HkfsHomeProductTable/HomeProductContent.less');
require('stylesheets/pager.less');
require('stylesheets/HkfsProductDescription.less');
require('stylesheets/ReFileUpload.less');
require('stylesheets/HkfsHomeToolBar.less');
require('stylesheets/RePanel.less');
require('stylesheets/ReLiGroup.less');
require('stylesheets/HkfsHome.less');
require('stylesheets/RepictureLiGroup.less');
require('stylesheets/HkfsHomeToolBarItem.less');
require('stylesheets/ReRightBubbleBox.less');
require('stylesheets/HkfsProfitComputer.less');
require('stylesheets/ReNoticeBar.less');
var initialState = window.__INITIAL_STATE__;
var createStoreWithMiddleware = applyMiddleware(thunk.default)(createStore);
var store = createStoreWithMiddleware(reducers, initialState);
var Provider=reactRedux.Provider;

//渲染头部底部公用模板
/*new RenderModel().intiModel();*/

ReactDom.render(
    <Provider store={store}>
        <HkfsHome/>
    </Provider>,document.getElementById('root'));



